package cn.qingyun.gis.modules.caronline.controller;

import cn.qingyun.gis.common.Result;
import cn.qingyun.gis.modules.caronline.service.ICarProofreadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "网约车-数据处理")
@RestController
@RequestMapping("/car/handle")
@Slf4j
public class CarDataHandleController {
    @Resource
    private ICarProofreadService iCarProofreadService;

    @ApiOperation(value = "对网约车信息进行业务区划匹配")
    @GetMapping("/matchGrid")
    public Result<?> matchGrid() {
        iCarProofreadService.matchGrid();
        return Result.okData("正在对网约车站点数据进行业务区划匹配, 请稍后");
    }
}
